<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<script>
			var num = 12
			// 隐式转换
			var msg = 12 + ''
			console.log('msg :>> ', msg, typeof msg)

			// 显示转换
			var res = String(num)
			var res1 = num.toString()
			console.log('res :>> ', res, typeof res)
			console.log('res1 :>> ', res1, typeof res1)
		</script>
	</body>
</html>
